package Message.Public
{
    import Framework.MQ.*;
    import Framework.Serialize.*;

    public class SCopyFindGroupRet extends Object implements IMessageBase
    {
        public var find:SCopyFindGroup;
        public var totalCount:int;
        public var groups:Array;
        public const _type:int = 20423;
        public static var _regist:SCopyFindGroupRet = new SCopyFindGroupRet(true);

        public function SCopyFindGroupRet(param1:Boolean = false)
        {
            if (param1)
            {
                MessageManager.instance().regist(this);
            }
            
        }

        public function getType() : int
        {
            return this._type;
        }

        public function clone() : IMessageBase
        {
            return new SCopyFindGroupRet();
        }

        public function __write(param1:SerializeStream) : void
        {
            this.find.__write(param1);
            param1.writeInt(this.totalCount);
            SeqGroupHelper.write(param1, this.groups);
            
        }

        public function __read(param1:SerializeStream) : void
        {
            this.find = new SCopyFindGroup();
            this.find.__read(param1);
            this.totalCount = param1.readInt();
            this.groups = SeqGroupHelper.read(param1);
            
        }

    }
}
